#+_+ coding:utf-8 +_+

import json 

def JsonEncode(msg):
    rst = str()
    try:
        rst = json.dumps(msg,sort_keys=True,indent=4, separators=(',', ': '))
    except Exception as e :
        print e
    return rst
